package com.zelix;

import java.io.*;

final class ap
    implements Runnable
{

    private final PrintWriter a;
    private final gv b;
    private final it c;
    private final ds d;
    private static String z[];

    ap(gv gv, it it1, ds ds1, PrintWriter printwriter)
    {
        b = gv;
        c = it1;
        d = ds1;
        a = printwriter;
    }

    public void run()
    {
        kb kb1 = null;
        try
        {
            kb1 = new kb(new FileWriter(z[3]), true);
        }
        catch(IOException ioexception)
        {
            d.b(z[4], z[0] + ioexception.getClass().getName());
        }
        PrintWriter printwriter = null;
        try
        {
            printwriter = new PrintWriter(new FileWriter(z[1]), true);
        }
        catch(IOException ioexception1)
        {
            d.b(z[4], z[2] + ioexception1.getClass().getName());
        }
        c.a(new nc[0], new hc[0], null, new File[0], d, b, null, kb1, printwriter, new sx(0), a);
        if(kb1 != null)
            kb1.close();
        if(printwriter != null)
            printwriter.close();
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key =0x52;
                    break;
                case 1:
                    key = 68;
                    break;
                case 2:
                    key = 18;
                    break;
                case 3:
                    key = 33;
                    break;
                default:
                    key = 19;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static
    {
        String as[];
        as = new String[5];
        as[0] = z("\021+gMw<cf\001|\"!|\001I\031\tMm|3 ^Nt|0jU3hd".toCharArray());
        as[1] = z("\b\017_~D36|H}5\b}F=&<f".toCharArray());
        as[2] = z("\021+gMw<cf\001|\"!|\001I\031\tMvr *{Ot\036+u\017g*02\0333".toCharArray());
        as[3] = z("\b\017_~_=%vm|5jfYg".toCharArray());
        as[4] = z("\027\026@nAh".toCharArray());
        z = as;
    }
}